package ren.steve.ngh.service;

/**
 * @Author: CIS-T-13 Liu GuoJia
 * @Description:
 * @Date: Created in 2024/3/25 16:16
 */

import com.baomidou.mybatisplus.extension.service.IService;
import ren.steve.model.ngh.bean.NghQueryTab;

import java.util.List;

public interface NghQueryTabService extends IService<NghQueryTab> {
  /**
   * 获取 Tabs
   * @param user
   * @return
   */
  List<NghQueryTab> list(String user);

  /**
   * 添加 TAB
   * @param tab
   * @return
   */
  NghQueryTab insert(NghQueryTab tab, List<NghQueryTab> tabs);

  /**
   * 删除 TAB 和隶属的所有 ResultTab
   * @param id
   * @return
   */
  int delete(Integer id);

  /**
   * 批量删除TAB
   * @param ids
   * @return
   */
  int deleteBatch(String[] ids);

  /**
   * 更新TAB
   *
   * @param tab
   * @return
   */
  NghQueryTab update(NghQueryTab tab);

  /**
   * 根据ID获取TAB
   * @param id
   * @return
   */
  NghQueryTab selectById(Integer id);
}
